#pragma once
#define  ZN_UP_NUM   WM_USER+683
#define  ZN_UP_ONE   WM_USER+684

class ZNUPFileinfo
{
public:
	CString m_name;
	CString m_md5str;
	CString m_date;

	CString Getfiletime(CString filename);
	bool   isneedup(CString cpath);
protected:
private:
};
class ZNUPinfo
{
public:
	std::vector<ZNUPFileinfo> m_sdatas;
protected:
private:
};

class ZNASPClient
{
public:
	ZNASPClient(void);
	~ZNASPClient(void);

	std::vector<CString> m_uppaths;
	//bool M_ISQUIT;

	void DELALLFILE();
	void DELFILE(CString FMD);
	bool GetFileList(ZNUPinfo & datas,bool ishow = false);
	bool downloadfiles(ZNUPinfo & datas,CWnd * part = NULL);

	bool downloadfile(CString mdstr,CString filename);

	bool UPfiles(CWnd * part = NULL);
	bool UPfiles(std::vector<CString> m_files,CWnd * part = NULL);


	CString m_name,m_pass;
	CString m_errstr;

	

	
	CString ZNASPClient::GetAppPath( );
protected:
	HMODULE __stdcall ZNASPClient::GetCurrentModule( VOID );
	
	void Str2Arr(CString &str,	CString pat,std::vector<CString> &attstr);
	CString mstrurl ;
};
